﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class CustomerListMap : EntityTypeConfiguration<CustomerList>
    {
        public CustomerListMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            this.ToTable("fuckyou");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.englishName).HasColumnName("company");
            this.Property(t => t.arabicName).HasColumnName("aname");
            this.Property(t => t.mobile).HasColumnName("mobile");
            this.Property(t => t.recordNumber).HasColumnName("caseNb");
            this.Property(t => t.phone).HasColumnName("phone");
        }
    }
}